Opens menu that contains items previously added by <menu_additem> command.
Syntax:
<menu_show>(Xpos, Ypos, Variable, RetValueOption, ItemPrefix)
Xpos
X-coordinate of the menu position. If Xpos is û1 and Ypos is also û1, the
menu appears on mouse cursor position.
Ypos
Y-coordinate of the menu position. If Xpos is û1 and Ypos is also û1, the
menu appears on mouse cursor position.
Variable
This variable receives the menu item user clicks on. If no menu item is
selected, the variable receives ôNOö value.
ReturnValueOption
If this parameter is 1, the Variable receives the item name as it was
added using <menu_additem> command. If this parameter is 0, the Variable
receives the order number of the item clicked.
Options
Can be one of these values:
0 - default behavior.
1 - a prefix (1-9, a-z) is added before each macro name in the menu. This
allows user to run macro by pressing the prefix key.
Example:
<#> This macro will show how to use 'menu_additem'
<#> and 'menu_show' commands
<cmds>
<menu_additem>("White")
<menu_additem>("Gray")
<menu_additem>("Black")
<menu_additem>(".RGB")
<menu_additem>(".Red")
<menu_additem>(".Green")
<menu_additem>(".Blue")
<menu_additem>(".")
<menu_show>(-1,-1,vColor,1,1)
<if_str>("vColor != NO")
<msg>(-100,-100,"Selected item is: %vColor%","Message",1)
<endif>